﻿<%@ Page Language="C#" Culture="en-GB" UICulture="en-GB"  MasterPageFile="~/WebMaster.master" AutoEventWireup="true" CodeFile="AllData.aspx.cs" Inherits="AllData" Title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<br />
    <asp:Label ID="Label1" runat="server" Text="All Co2 Emissions in tonnes"></asp:Label>
    <asp:Chart ID="chartCo2" runat="server"  Width="742px" Palette="EarthTones">
        <Legends>
            <asp:Legend Name="Legend1">
            </asp:Legend>
        </Legends>
        <Titles>
            <asp:Title Name="CO2 Emissions">
            </asp:Title>
        </Titles>
        <Series>
            <asp:Series  ChartArea="ChartArea1" Name="Electricity" ChartType="StackedColumn" 
                Legend="Legend1" XValueMember="Year" YValueMembers="ElectricityCo2">
            </asp:Series>
            <asp:Series Name="Gas" ChartType="StackedColumn" Legend="Legend1" 
                XValueMember="Year" YValueMembers="GasCo2">
            </asp:Series>
        </Series>
        <ChartAreas>
            <asp:ChartArea Name="ChartArea1"  BorderColor="64, 64, 64, 64" BackSecondaryColor="White"
                BackColor="WhiteSmoke" ShadowColor="Transparent">
                <Area3DStyle Enable3D="True" />
            </asp:ChartArea>
        </ChartAreas>
    </asp:Chart>


    <asp:GridView ID="dgData" runat="server" AutoGenerateColumns="False" 
        BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
        CellPadding="2" ForeColor="Black" GridLines="None">
        <Columns>
            <asp:BoundField DataField="MinDate" DataFormatString="{0:yyyy}" HeaderText="Month" />
            <asp:BoundField DataField="ElectricityKwh" DataFormatString="{0:N1}" HeaderText="Electricity Kwh"  />
            <asp:BoundField DataField="GasKwh" DataFormatString="{0:N1}" HeaderText="Gas Kwh"  />
     
            <asp:BoundField DataField="ElectricityCo2" DataFormatString="{0:N1}" HeaderText="Electricity Co2"/>
            <asp:BoundField DataField="GasCo2" DataFormatString="{0:N1}" HeaderText="Gas CO2"  />

            <asp:BoundField DataField="Co2" DataFormatString="{0:N1}" HeaderText="Total CO2"  />
            <asp:BoundField DataField="EnergyRate" DataFormatString="{0:N1}" HeaderText="Energy Rate"  />
        </Columns>
        <FooterStyle BackColor="Tan" />
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <AlternatingRowStyle BackColor="PaleGoldenrod" />
    </asp:GridView>


    <asp:ScriptManager ID="ScriptManager1" runat="server" 
        EnableScriptGlobalization="True">
    </asp:ScriptManager>

</asp:Content>

